﻿using CarterWechatServer.WebApi.App_Start.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;

namespace CarterWechatServer.WebApi.App_Start
{
    /// <summary>
    /// 过滤器配置
    /// </summary>
    public class FilterConfig
    {
        /// <summary>
        /// 过滤器注册方法
        /// </summary>
        /// <param name="configuration"></param>
        public static void Register(HttpConfiguration configuration)
        {
            configuration.Filters.Add(new CustomExceptionFilterAttribute());
        }
    }
}